package cn.icare.cms.model.ro;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.List;

@ApiModel(value = "AddItemRO",description = "商品新增参数对象类")
public class AddItemRO {
    @ApiModelProperty(value = "商品编号",required = true)
    private String code;
    @ApiModelProperty(value = "商品名称",required = true)
    private String  title;

    @ApiModelProperty(value = "商品分类id",required = true)
    private Long cid;
    @ApiModelProperty(value = "商品分类层级路径可为空")
    private String  cpath;
    @ApiModelProperty(value = "商品关键字或概述")
    private String keywords;

    @ApiModelProperty(value = "商品净含量")
    private String  weight;
    @ApiModelProperty(value = "商品净含量单位")
    private String  unit;

    @ApiModelProperty(value = "商品价格（原价）")
    private BigDecimal price;

    @ApiModelProperty(value = "商品库存量")
    private Integer num;

    @ApiModelProperty(value = "是否新品1-是0-否")
    private Integer isnew;

    @ApiModelProperty(value = "是否推荐1-是0-否")
    private Integer isrecommend;

    /**
     * 主图地址
     */
    @ApiModelProperty(value = "主图地址")
    private  String image;

    @ApiModelProperty(value = "商品状态，1-正常，2-下架，3-删除")
    private Integer status;

    @ApiModelProperty(value = "商品详情")
    private String description;

    @ApiModelProperty(value = "保质期")
    private String exp;

    @ApiModelProperty(value = "保存条件")
    private String storageconditions;

    @ApiModelProperty(value = "商品图片列表")
    private List<String> imageList;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public String getCpath() {
        return cpath;
    }

    public void setCpath(String cpath) {
        this.cpath = cpath;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }



    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getExp() {
        return exp;
    }

    public void setExp(String exp) {
        this.exp = exp;
    }

    public String getStorageconditions() {
        return storageconditions;
    }

    public void setStorageconditions(String storageconditions) {
        this.storageconditions = storageconditions;
    }

    public List<String> getImageList() {
        return imageList;
    }

    public void setImageList(List<String> imageList) {
        this.imageList = imageList;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getIsnew() {
        return isnew;
    }

    public void setIsnew(Integer isnew) {
        this.isnew = isnew;
    }

    public Integer getIsrecommend() {
        return isrecommend;
    }

    public void setIsrecommend(Integer isrecommend) {
        this.isrecommend = isrecommend;
    }
}
